Performs in parallel a subsequent ordering of the elements in a sequence in descending
order by using a specified comparer.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function ThenByDescending(Of TSource, TKey) ( _
source As OrderedParallelQuery(Of TSource), _
keySelector As Func(Of TSource, TKey), _
comparer As IComparer(Of TKey) _
) As OrderedParallelQuery(Of TSource) |
Parameters
- source
- Type: System.Linq..::.OrderedParallelQuery<(Of <(TSource>)>)
An OrderedParallelQuery{TSource} than contains
elements to sort.
- keySelector
- Type: System..::.Func<(Of <(TSource, TKey>)>)
A function to extract a key from an element.
- comparer
- Type: System.Collections.Generic..::.IComparer<(Of <(TKey>)>)
An IComparer{TKey} to compare keys.
Type Parameters
- TSource
- The type of elements of source.
- TKey
- The type of the key returned by keySelector.
Return Value
An OrderedParallelQuery{TSource} whose elements are sorted
descending according to a key.
Remarks
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException |
source or keySelector is a null reference (Nothing in Visual Basic).
|
See Also